﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace tpos_custom_control
{
    public partial class uc_ButtonLable : UserControl
    {
        public uc_ButtonLable()
        {
            InitializeComponent();
        }

        public string bText
        {
            get { return this.btn.Text.ToString();}
            set { this.btn.Text = value; }
        }

        public int bHigh
        {
            get { return this.btn.Height; }
            set { this.Height = value; btn.Height = value; }
        }

        public int bWidth
        {
            get { return btn.Width; }
            set { this.Width = value; btn.Width = value; }
        }

        private void uc_ButtonLable_Resize(object sender, EventArgs e)
        {
            btn.Width = this.Width;
            btn.Height = this.Height;
        }
    }
}
